package edu.aysf.service.impl;

import edu.aysf.dao.DoctorDao;
import edu.aysf.entity.DoctorEntity;
import edu.aysf.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 郑老师
 * @Version: 1.0
 * @Date: 2024-10-16 14:34:43
 * @Desc:
 **/
// 2个注解均可
@Service
//@Component
public class DoctorServiceImpl implements DoctorService {

    @Autowired
    private DoctorDao dao;

    public List<DoctorEntity> selectDoctorInfo() {
        // 接口中的属性不能赋值
//        DoctorService.test="test2";
        // 接口中的属性可以直接使用
//        System.out.println(DoctorService.test);
        return dao.selectDoctorInfo();
    }

}
